encode{
  final ChannelBuffer buffer=(ChannelBuffer)msg;
  buffer.readerIndex(0);
  return buffer;
}
setHandshaked{ }
